package Test1;

import javax.swing.*;
import java.awt.*;

public class A {
    public static void main(String[] args) {
        JFrame frame = new JFrame();
        JPanel contentPane = new JPanel(new BorderLayout());
        JPanel buttonPanel = new JPanel(new FlowLayout());
        JPanel panel = new JPanel();
        
        JButton button = new JButton("Click");
        buttonPanel.add(button);
        
        contentPane.add(BorderLayout.NORTH, buttonPanel);
        contentPane.add(BorderLayout.CENTER, panel);
        
        frame.setContentPane(contentPane);
        frame.setSize(200, 200);
        frame.setVisible(true);
    }
} 
